angular.module('${menuCode}')
.filter('to_trusted', ['$sce', function ($sce) {
	return function (text) {
	    return $sce.trustAsHtml(text);
	};
}])

.controller("${widgetCode}Ctrl",function($scope,AppKit){
	var url = '/portal/resource?MobileForumDataProvider&actionType=findUserAttentionForumPostInfos';
	var promise = AppKit.getJsonApi(url);
	promise.success(function(rspJson){
		$scope.datas = rspJson.datas;
	});
	
	$scope.openModal = function(id,text){
		$scope.modalTitle = text;
		$scope.currentInfoId = id;
		AppKit.createModal("bbs-content-modal",$scope);	
	}
});